<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core">
    <h:head>
        <title>#{msgs.loginPageTitle}</title>
        <h:outputStylesheet library="css" name="bootstrap.css"/>
    </h:head>

    <h:body>
    	<div id="loginBox">
        <h:form>
            <h2>#{msgs.loginTitle}</h2>
            <h:panelGrid columns="1" id="loginGrid">
	            <h:panelGroup>
	            <h:outputText value="#{msgs.empIDPrompt}:" class="formLabel" />
	            <h:inputText value="#{login.empID}" label="#{msgs.empIDPrompt}" id="loginName" required="true" />
	            <br />
	            <h:message for="loginName" errorClass="error" />
	            </h:panelGroup>
	            <h:panelGroup>
	            <h:outputText value="#{msgs.pwdPrompt}:" class="formLabel" style="padding-right: 17px"/>
	            <h:inputSecret value="#{login.password}" label="#{msgs.pwdPrompt}" id="loginPwd" redisplay="false" required="true" />
	            <br />
	            <h:message for="loginPwd" errorClass="error" />
	            </h:panelGroup>
	            <h:outputText value="#{msgs.errorLogin}" rendered="#{login.invalidLogin}" styleClass="error"/>
            <h:commandButton value="#{msgs.submit}" action="#{login.login}" />
            </h:panelGrid>
        </h:form>
        </div>
    </h:body>

</html>